<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->

<title>详情</title>

<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script language="JavaScript">
	function checktext(text) {
		allValid = true;
		for (i = 0; i < text.length; i++) {
			if (text.charAt(i) != " ") {
				allValid = false;
				break;
			}
		}
		return allValid;
	}
	function gbcount(message, total, used, remain) {
		var max;
		max = total.value;
		if (message.value.length > max) {
			message.value = message.value.substring(0, max);
			used.value = max;
			remain.value = 0;
			alert("不能超过 2000 个字!");
		} else {
			used.value = message.value.length;
			remain.value = max - used.value;
		}
	}
</script>
</head>

<body style="background: #e2e2e2">
	<div class="container">
		<table class="table table-bordered table-striped table-hover"
			style="text-align: center">
			
			<tr>
				<td>标题</td>
				<td>作者</td>
				<td>时间</td>
			</tr>
			<tr>
				<td>${post.title}</td>
				<td>${post.username}</td>
				<td><fmt:formatDate pattern="yyyy-MM-dd" />${post.creatTime}</td>
			</tr>
		</table>
		<div>
			
            ${post.content}
           	<br>
           	
        	点赞数目：${post.goodNum }
        	<a  href="<%=request.getContextPath() %>/addGoodNum?id=${post.id}" ><font color="red" style="font-style:normal;">     点赞</font></a>
		</div>
			<a target="_blank" href="<%=request.getContextPath() %>/selectCom?postId=${post.id}" ><font color="red" style="font-style:normal;">查看评论</font></a>
	</div>
	<br>
	</div>
	<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	<script src="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>


